package com.example.youjingjing.electronicbalance.model;

import android.content.Context;

/**
 * Created by youjingjing on 2017/7/13.
 */

public class LoginModelIml implements LoginModel {

    public  void login(Context context, String name, String password,OnLoginResultListener netWorkCallBack) {
        if(name .equals("1") &&password.equals("1")){
            netWorkCallBack.onSuccess("登录成功");
        }else{
            netWorkCallBack.onFailure("登陆失败");
        }
    }
}
